import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/cdn_activity_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/cdn_activity_entity.g.dart';

@JsonSerializable()
class CdnActivityEntity {
	int? id;
	int? type;
	String? nameZh;
	String? nameEn;
	String? nameTha;
	String? pictureZh;
	String? pictureEn;
	String? pictureTha;
	int? strattime;
	int? endtime;
	int? creationtime;
	int? state;
	int? top;
	@JSONField(name: "Sorting")
	int? sorting;
	@JSONField(name: "EventDetails")
	int? eventDetails;

	CdnActivityEntity();

	factory CdnActivityEntity.fromJson(Map<String, dynamic> json) => $CdnActivityEntityFromJson(json);

	Map<String, dynamic> toJson() => $CdnActivityEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}